Skip to content

[SC-10190] Git ignore .direnv/ and .envrc#365

Merged
hunner merged 1 commit intomainfrom
hunner/sc-10190/ignore-direnv
May 5, 2025
Merged

[SC-10190] Git ignore .direnv/ and .envrc#365
hunner merged 1 commit intomainfrom
hunner/sc-10190/ignore-direnv

Conversation

@hunner
Copy link
Contributor

@hunner hunner commented May 5, 2025

Pull Request Description

What

This PR adds .direnv/ and .envrc to .gitignore. Direnv https://direnv.net/ is a handy way to have per-project environment variables and other environment artifacts and load them when cding into a project.

Why

Besides the fact that it's annoying to have files show up as untracked in git, VSCode search automatically excludes files and folders based on the git ignore. My environment populates .direnv/ with temporary files from the project and should not show up in VSCode search.

How to Test

touch .envrc && git status | grep .envrc

Checklist

  • PR body describes what, why, and how to test
  • Breaking changes identified
  • Labels applied
  • PR linked to Shortcut
  • Tested locally
  • Documentation updated (if required)

@hunner hunner added the internal Not to be externalized in the release notes label May 5, 2025
@CLAassistant
Copy link

CLAassistant commented May 5, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2025

PR Summary

This pull request updates the .gitignore file to include two new entries: .envrc and .direnv/. These additions are intended to prevent environment configuration files and directories used by the direnv tool from being tracked in the repository. This change helps maintain a clean repository by ensuring that local environment-specific files are not accidentally committed.

Test Suggestions

  • Verify that .envrc and .direnv/ are correctly ignored by Git by creating these files/directories and checking their status with git status.
  • Ensure that existing functionality is not affected by these changes in the .gitignore file.

@hunner hunner merged commit a62e06b into main May 5, 2025
8 checks passed
@hunner hunner deleted the hunner/sc-10190/ignore-direnv branch May 5, 2025 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Not to be externalized in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants